package org.lsa.sb.controller;

import java.util.Date;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/10001")
public class UserController {

	@Value("${server.port}")
	private String serverPort;
	
	@GetMapping("/getUser/{name}")
	public String getUser(@PathVariable("name") String name){
		return serverPort + ", "+ name + ",curentTime:"+new Date();
	}
}
